home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / transpose.z / transpose
Encoding:
Text File  |  1998-10-30  |  1.5 KB  |  50 lines

  1. TRANSPOSE(3I)                                          Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      TTRRAANNSSPPOOSSEE - Transposes an array of rank two
  6.  
  7. SSYYNNOOPPSSIISS
  8.      TTRRAANNSSPPOOSSEE (([MMAATTRRIIXX==]_m_a_t_r_i_x))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, and IRIX systems
  12.  
  13. SSTTAANNDDAARRDDSS
  14.      Fortran 90
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      The TTRRAANNSSPPOOSSEE intrinsic function transposes a two-dimensional array.
  18.      It accepts the following argument:
  19.  
  20.      _m_a_t_r_i_x    May be of any type and must have rank two
  21.  
  22.      TTRRAANNSSPPOOSSEE is a transformational function.  The name of this intrinsic
  23.      cannot be passed as an argument.
  24.  
  25. RREETTUURRNN VVAALLUUEESS
  26.      The result is an array of the same type and type parameters as _m_a_t_r_i_x,
  27.      with rank two, and shape (_n, _m), where (_m, _n) is the shape of _m_a_t_r_i_x.
  28.      Element (_i, _j) of the result has the value _m_a_t_r_i_x(_j,_i), where
  29.      _i = 1, 2, ..., _n and _j = 1, 2, ..., _m.
  30.  
  31. EEXXAAMMPPLLEESS
  32.      Assume that array AA is as follows:
  33.  
  34.         | 1 2 3 |
  35.         | 4 5 6 |
  36.         | 7 8 9 |
  37.  
  38.  
  39.      TTRRAANNSSPPOOSSEE((AA)) has the following value:
  40.  
  41.         | 1 4 7 |
  42.         | 2 5 8 |
  43.         | 3 6 9 |
  44.  
  45.  
  46. SSEEEE AALLSSOO
  47.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  48.      printed version of this man page.
  49.  
  50.